package com.kaifamiao.www.demo.do0801.pm;

public interface Human {
    void printColor();
    void printGender();

}
interface Man extends Human{
    @Override
    default void printGender(){
        System.out.println("男");
    }
}
interface Woman extends Human{
    @Override
    default void printGender(){
        System.out.println("女");
    }
}
class BlackMan implements Human,Man{

    @Override
    public void printColor() {
        System.out.println("black");
    }
}
class BlackWoman implements Human,Woman{

    @Override
    public void printColor() {
        System.out.println("black");
    }
}
class WhiteMan implements Man{

    @Override
    public void printColor() {
        System.out.println("white");
    }
}
class WhiteWoman implements Woman{
    @Override
    public void printColor() {
        System.out.println("white");
    }
}